/**
 * autho fengbin
 * 2008-9-10 
 */
package com.wsj.service;

import java.util.List;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.form.search.HomeSiteSearchHotKeyForm;
import com.wsj.web.vo.homeSite.ComAdType;
import com.wsj.web.vo.homeSite.HomeSiteSearchHotKey;

/**
 * @author super
 *
 * 热门关键字搜索接口
 */
public interface IHomeSiteSearchHotKeyServ 
{
   /*****
    * 加载所有的搜索分类
    * @return
    */
	List loadComAdTypeList() throws BusinessException;

	 /****
	  * 通过id加载搜索中的分类
	  * @param comAdTypeId
	  * @return
	  */
	ComAdType loadComAdTypeById(Integer comAdTypeId)throws BusinessException;

	 /*****
	  * 添加热门关键字
	  * @param homeSiteSearchHotKey
	  * @return
	  */
	boolean addHomeSiteSearchHotKey(HomeSiteSearchHotKey homeSiteSearchHotKey)throws BusinessException;

	/****
	 * 通过id,加载热门关键字
	 * @param integer
	 * @return
	 */
	HomeSiteSearchHotKey loadHomeSiteSearchHotKeyById(Integer integer)throws BusinessException;

	/****
	 * 更新热门关键字
	 * @param homeSiteSearchHotKey
	 * @return
	 */
	boolean updateHomeSiteSearchHotKey(HomeSiteSearchHotKey homeSiteSearchHotKey)throws BusinessException;

	/****
	 * 检查热门关键字是否存在
	 * @param keywords
	 * @param comAdTypeId
	 * @param addOrUpdate
	 * @return
	 */
	boolean checkHomeSiteSearchHotKey(Integer id,String keywords, Integer comAdTypeId, String addOrUpdate)throws BusinessException;

	/****
	 * 通过搜索条件,加载热门关键字列表
	 * @param homeSiteSearchHotKeyForm
	 * @return
	 */
	PageResultSet loadHomeSiteSearchHotKeyList(Integer page,Integer pageSize,HomeSiteSearchHotKeyForm homeSiteSearchHotKeyForm)throws BusinessException;
	
	
	/******
	 * 通过搜索分类的名称,加载该分类下面top位 关键字
	 */
	List loadTopHotKeyList(String typeName,Integer top)throws BusinessException;

}
